package com.bg.business.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(value = "account")
public interface AccountFeign {
    @RequestMapping("/account/reduce")
    public void reduce(@RequestParam("userId") String userId, @RequestParam("amount") BigDecimal amount);

}

